import request from './request';

// 获取用户信息
export function getUserInfo () {
  return request({
    url: '/user/info',
    method: 'get',
  });
}

// 用户登录
export function login (username, password) {
  return request({
    url: '/user/login',
    method: 'post',
    data: {
      username,
      password
    }
  });
}

